<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="../include/tag.jsp" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <title>基本信息</title>
    <%@include file="../include/commonFile.jsp" %>
    <link rel="stylesheet" href="${ctx}/css/ui/gatherInfo/gather_info_detail.css">
</head>
<body>
<form id="myForm" class="layui-form info-container" action="${ctx}/gatherInfo/member/verifyBaseInfo.do">
    <fieldset class="aui-field-title">
        <legend>个人信息</legend>
    </fieldset>
    <table class="layui-table" lay-skin="nob">
        <colgroup>
            <col width="110">
            <col>
        </colgroup>
        <tbody>
        <tr>
            <td class="tr"></td>
            <td class="tl">
                <div class="member-logo">
                    <div class="user-infos">
                        <div class="avater-big" style="background-image: <c:if
                                test="${member.logo != null}">url(${member.logo}?imageMogr2/auto-orient/crop/126x126),</c:if>url(../../image/avatar1.png);"></div>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td class="tr">姓&emsp;&emsp;名</td>
            <td class="tl">${member.fullname}</td>
        </tr>
        <tr>
            <td class="tr">性&emsp;&emsp;别</td>
            <td class="tl"><c:if test="${member.sex == 1}">男</c:if><c:if test="${member.sex == 0}">女</c:if></td>
        </tr>
        <tr>
            <td class="tr">公&emsp;&emsp;司</td>
            <td class="tl">${member.company}</td>
        </tr>
        <tr>
            <td class="tr">职&emsp;&emsp;务</td>
            <td class="tl">${member.jobTitle}</td>
        </tr>
        <tr>
            <td class="tr">手&emsp;&emsp;机</td>
            <td class="tl">${member.mobile}</td>
        </tr>
        <tr>
            <td class="tr">微&emsp;&emsp;信</td>
            <td class="tl">${member.wechatNum}</td>
        </tr>
        <tr>
            <td class="tr">城&emsp;&emsp;市</td>
            <td class="tl">${cityName}</td>
        </tr>
        <tr>
            <td class="tr">行&emsp;&emsp;业</td>
            <td class="tl">${industryName}</td>
        </tr>
        <%--<tr>
            <td class="tr">自我介绍</td>
            <td class="tl" style="word-break: break-all;">${member.signature}</td>
        </tr>--%>
        <tr>
            <td class="tr">组内职务</td>
            <td class="tl">${infoMember.groupJobTitle}</td>
        </tr>
        </tbody>
    </table>
    <fieldset class="aui-field-title">
        <legend>健康信息</legend>
    </fieldset>
    <table class="layui-table" lay-skin="nob">
        <colgroup>
            <col width="110">
            <col>
        </colgroup>
        <tbody>
        <tr>
            <td class="tr">过&emsp;&emsp;敏</td>
            <td class="tl">
                <c:if test="${memberInfo.isGm == 1}">是</c:if>
                <c:if test="${memberInfo.isGm == 0}">否</c:if>
            </td>
        </tr>
        <tr>
            <td class="tr">贫&emsp;&emsp;血</td>
            <td class="tl">
                <c:if test="${memberInfo.isPx == 1}">是</c:if>
                <c:if test="${memberInfo.isPx == 0}">否</c:if>
            </td>
        </tr>
        <tr>
            <td class="tr">癫&emsp;&emsp;痫</td>
            <td class="tl">
                <c:if test="${memberInfo.isDx == 1}">是</c:if>
                <c:if test="${memberInfo.isDx == 0}">否</c:if>
            </td>
        </tr>
        <c:if test="${member.sex == 0}">
            <tr>
                <td class="tr">孕&emsp;&emsp;妇</td>
                <td class="tl">
                    <c:if test="${memberInfo.isYf == 1}">是</c:if>
                    <c:if test="${memberInfo.isYf == 0}">否</c:if>
                </td>
            </tr>
        </c:if>
        <tr>
            <td class="tr">低&ensp;血&ensp;糖</td>
            <td class="tl">
                <c:if test="${memberInfo.isDxt == 1}">是</c:if>
                <c:if test="${memberInfo.isDxt == 0}">否</c:if>
            </td>
        </tr>
        <tr>
            <td class="tr">高&ensp;血&ensp;压</td>
            <td class="tl">
                <c:if test="${memberInfo.isGxy == 1}">是</c:if>
                <c:if test="${memberInfo.isGxy == 0}">否</c:if>
            </td>
        </tr>
        <tr>
            <td class="tr">心&ensp;脏&ensp;病</td>
            <td class="tl">
                <c:if test="${memberInfo.isXzb == 1}">是</c:if>
                <c:if test="${memberInfo.isXzb == 0}">否</c:if>
            </td>
        </tr>
        <tr>
            <td class="tr">心肌缺氧</td>
            <td class="tl">
                <c:if test="${memberInfo.isXjqy == 1}">是</c:if>
                <c:if test="${memberInfo.isXjqy == 0}">否</c:if>
            </td>
        </tr>
        <tr>
            <td class="tr">骨关节疾病</td>
            <td class="tl">
                <c:if test="${memberInfo.isGgj == 1}">是</c:if>
                <c:if test="${memberInfo.isGgj == 0}">否</c:if>
            </td>
        </tr>
        <tr>
            <td class="tr">健康信息</td>
            <td class="tl" style="word-break: break-all;">${memberInfo.healthInfo}</td>
        </tr>
        <tr>
            <td class="tr">审核状态</td>
            <td class="tl">
                <input type="radio" name="perfectState" lay-filter="baseStatus" value="1" title="待审核"
                ${member.perfectState == "1" ? 'checked="checked"' : ''} />
                <input type="radio" name="perfectState" lay-filter="baseStatus" value="2" title="通过"
                ${member.perfectState == "2" ? 'checked="checked"' : ''} />
                <input type="radio" name="perfectState" lay-filter="baseStatus" value="3" title="未通过"
                ${member.perfectState == "3" ? 'checked="checked"' : ''} />
                <input type="hidden" name="id" value="${member.id}"/>
                <input type="hidden" name="infoMemberId" value="${infoMember.id}">
            </td>
        </tr>
        </tbody>
    </table>
    <div class="footer-buttons">
        <a class="layui-btn layui-btn-danger" lay-submit lay-filter="*" href="javascript:void(0)">提交</a>
        <a class="layui-btn layui-btn-normal" href="javascript:closeSelf()">取消</a>
    </div>
    <div class="footer-place"></div>
</form>
</body>
<%@include file="../include/incScript.jsp" %>
<script type="text/javascript">
    $(function () {
        layui.use(['form'], function () {
            var form = layui.form;

            //监听提交
            form.on('submit', function (data) {
                txz.submitObject(data.elem, function (callBack) {
                    var action = $("#myForm").attr("action");
                    $.post(action, $('#myForm').serialize(), function (res) {
                        typeof callBack === 'function' && callBack();
                        if (res.success) {
                            util.layerMsgSuccess("提交成功", function () {
                                parent.submitFunction('#myForm');
                            });
                        } else {
                            util.layerMsgError("提交失败")
                        }
                    });
                });
                return false;
            });
        });
    })

    function closeSelf() {
        var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
        top.layer.close(index);
    }
</script>
</html>